package com.iran.chainOfResponsibility.example;

public class GeneralManager extends Manager {
    public GeneralManager(String name) {
        super(name);
    }

    @Override
    public void requestApplications(Request request) {
        if (request.getType() == 2 ){
            System.out.println("总经理处理涨薪请求");
        }else if (request.getType() == 4){
            System.out.println("总经理处理病假请求");
        }else {
            System.out.println("没有人处理了");
        }
    }
}
